import { var_split, string_function } from "../utils";



export class HandlerLowerCase implements IStringHandler {

    convertStr(text: string): string {
        // let text_list = var_split(text);
        let convert = (var_text: string) => {
            if (/[_a-zA-Z]+/.test(var_text)) {
                return var_text.toLowerCase();
            } else {
                return var_text;
            }
        }
        return string_function(text, convert);

    }
}